package com.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Flink配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "flink")
public class FlinkConfig {
    private Remote remote;
    private Job job;

    @Data
    public static class Remote {
        private String host;
        private Integer port;
    }

    @Data
    public static class Job {
        private Integer checkpointInterval;
        private Integer parallelism;
    }
}
